<form id="add-form" class="form-horizontal" enctype="multipart/form-data" data-toggle="validator" method="POST" action="">
    <input type="hidden" name="id" value="{$row.id}">
    <div class="form-group">
        <label for="title" class="control-label col-xs-12 col-sm-2"><i class="text-muted">*</i>标题:</label>
        <div class="col-xs-12 col-sm-8">
            <span class="form-control">{$row.title}</span>
        </div>
    </div>

    <div class="form-group">
        <label for="stock" class="control-label col-xs-12 col-sm-2"><i class="text-muted">*</i>可用库存:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="stock" name="row[stock]" value="{$row.stock}"
                   data-rule="required"/>
        </div>
    </div>

    <div class="form-group">
        <label for="ticket" class="control-label col-xs-12 col-sm-2"><i class="text-muted">*</i>文件导入:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="file" accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" name="excel" id="c-tickets" value="" class="form-control" />
        </div>
    </div>


    <div class="form-group hidden layer-footer">
        <div class="col-xs-2"></div>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
